﻿using Developer.Core.FrameWork.EventBus.Service;
using Microsoft.Extensions.Logging;
using System;
using System.Threading.Tasks;

namespace Developer.Core.FrameWork.EventBus.EventHandling
{
    public class DeveloperDeletedIntegrationEventHandler : IEventHandler<DeveloperDeletedIntegrationEvent>
    {
        private readonly ILogger<DeveloperDeletedIntegrationEventHandler> _logger;

        public DeveloperDeletedIntegrationEventHandler(ILogger<DeveloperDeletedIntegrationEventHandler> logger)
        {
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }

        public Task Handle(DeveloperDeletedIntegrationEvent @event)
        {
            Console.WriteLine(@event.Message);
            return Task.CompletedTask;
        }

    }
}
